Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make bundle location relative to webpack publicPath #226

Merged
merged 1 commit into from
Jun 6, 2016

Conversation

bmagnus
Copy link

@bmagnus bmagnus commented Jun 3, 2016

The paths for manager.bundle.js and preview.bundle.js are currently hard-coded to match the webpack publicPath that is set in this project (/static/). If I override the publicPath in a custom webpack config, Storybook will not find the bundles because it will still look for /static/{bundle}.

This pull request makes the bundle paths (in the html produced by index.html.js and iframe.html.js) relative to the publicPath variable.

@thani-sh thani-sh merged commit 82de92b into storybookjs:master Jun 6, 2016
thani-sh added a commit that referenced this pull request Jun 6, 2016
@thani-sh
Copy link
Contributor

thani-sh commented Jun 6, 2016

Thank you @bmagnus
I have reverted the changes temporarily to fix some issues. I'll push a release as soon as they are done.

edit:
It didn't work well with static build

@thani-sh
Copy link
Contributor

thani-sh commented Jun 6, 2016

Released v1.28.4

@shilman shilman added the misc label May 27, 2017
Copy link

nx-cloud bot commented Dec 2, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 84e3e23. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants